const moment = require('moment');

var _fetchOpt = {
    before:  null // moment().subtract(7, 'days').valueOf(),       // 获取在此时间之前的数据, 为 null 则不限制
};

module.exports = {
    get port () {
        return 9000;
    },

    get mysql(){
        return {
            host: 'mysql',
            user: 'root',
            password: '1qaz2WSX',
            database: 'wx'
        };
    },

    get fetchOpt() {
        return _fetchOpt;
    },

    get mqOpt () {
        return  {
            host: 'amqp://admin:edoc2@rabbitmq:5672'
        };
    },

    get hubOpt() {
        return {
            adb: 'http://localhost:5000/adb'
        };
    }
};